﻿using XsqTech.SmartOA.Dtos.DTO;
using XsqTech.SmartOA.Dtos.XSPDto.FromDto;
using XsqTech.SmartOA.Service.DTO;

namespace XsqTech.SmartOA.IService
{
    public interface IUserService
    {
        ResponseModel GetLogin(UserLogin dto);
        ResponseModel UserAdd(AddUserDto m);
        dynamic UserQuery(string UserName, int pageIndex, int pageSize);
        ResponseModel UserUpdate(AddUserDto m);
        dynamic RoleQuery();
        ResponseModel AddUserRole(UserRoleDto dto);
        /// <summary>
        /// 用户删除（单删）
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseModel UserDelete(string id);
        /// <summary>
        /// 用户删除（批删）
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseModel AllUserDelete(List<AddUserDto> dto);
    }
}